package com.financing.wap.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IProductNoticeDao;
import com.financing.wap.dto.ProductNoticeDTO;
import com.financing.wap.vo.ProductNoticeVO;

@Repository("productNoticeDaoImpl")
public class ProductNoticeDaoImpl extends BaseDaoImpl implements IProductNoticeDao {

	@Override
	public List<ProductNoticeDTO> queryProductNotice(ProductNoticeVO notice) throws Exception {
		return this.getSqlMapClientTemplate().queryForList(SqlName.queryProductNotice, notice);
	}
	
	public int queryProductNoticeCount(ProductNoticeVO notice) throws Exception {
		return (Integer)this.getSqlMapClientTemplate().queryForObject(SqlName.queryProductNoticeCount, notice);
	}

	@Override
	public Class getEntityClass() {
		return null;
	}
}
